/**
 * @file
 * @author  Tsin Smith <tsin.creator@gmail.com>
 *
 * @section DESCRIPTION
 *
 */

#ifndef __TSIN_LIBRARY_DYNAMICPARAMETER_HPP__
#define __TSIN_LIBRARY_DYNAMICPARAMETER_HPP__

#include <tsin/library/common.hpp>
#include <tsin/library/DynamicObject.hpp>

namespace tsin {

        class LIBRARY_DLLEXPORT DynamicParameter : public DynamicObject {
        public:
                DynamicParameter();

                void init(int idx);
                virtual void reinit();
                virtual DynamicEvent preTick(void *data = 0, void *priv_data = 0);

                virtual char getDescriptor();
                virtual int getInt();
                virtual float getFloat();

        private:
                int idx;
                float data;
        };

}

#endif /* __TSIN_LIBRARY_DYNAMICPARAMETER_HPP__ */
